Skip to main content

FlowPosition

Represents a workflow position in the system, encapsulating properties and methods to manage the workflow step logic.

Properties

NameDescription
MessageOptionsGets or sets the message options.
NotificationOptionsGets or sets the push notification options.
IdThe unique identifier of the flow position.
KeyA unique identifier for the workflow step.
MailMessageGets the mail message associated with the message.
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
CachedDMObjectsThe cached document management objects related to the flow object.
DoNotSendRequestIfProcessedIndicates whether a request should be avoided if already processed.
NotificationCaptionGets the notification caption associated with the message.
NotificationMessageGets the notification message associated with the message.
HideApporoverInHistoryDetermines whether the approver should be hidden in the flow history.
AutoOpenApprovalOptionAutomatically opens approval options for the current position.
IsCustomMailMessageGets or sets a value indicating whether the mail message is custom.
MailSubjectGets the mail subject associated with the message.
GeolocationOptionsGeolocation-related options for the flow position.
EnableSendMailGets or sets a value indicating whether sending mail is enabled.
TypeCodeThe type code associated with the flow object.
ForwardingOptionsOptions defining forwarding behavior for the flow position.
EventsToCheckA list of event names to monitor for the flow position.
ValueTypeIndicates the type of the flow position, such as user or initiator.
TimeoutHourThe number of hours set for the timeout duration.
RequestIsNecessaryIfDocumentChangedRequires approval if the associated document has been modified.
TimeoutDurationThe total timeout duration in a TimeSpan format.
AttachmentsGets the list of attachments associated with the message.
WebNotificationOptionsGets or sets the web notification options.
DescriptionA descriptive name for the flow position, often combining first and last names.
TimeoutOptionsOptions defining the timeout behavior for the flow position.
TimeoutDayThe number of days set for the timeout duration.
NameName for the workflow step.
CalculateUsingWorkingHoursSpecifies if working hours should be considered in timeout calculations.
EmailThe email address linked to the current flow position.
DocumentsA list of documents associated with the flow position.
EventsA read-only list of events related to the flow position.
EnablePushNotificationGets or sets a value indicating whether push notification is enabled.
CustomMailMessageGets the custom mail message associated with the message.
TimeoutMinuteThe number of minutes set for the timeout duration.
ShowInFlowHistorySpecifies if the position should be visible in the flow history.
CalculateUsingHolidaysSpecifies if holiday calculations should be included in timeouts.
CaptionThe caption dictionary representing localized captions for the flow object.
CodeThe code associated with the flow position, typically representing a username.

Constructors

NameDescription
FlowPosition(name, workflowData, workflowCodeInstance)Constructor for the FlowPosition class. Initializes a new instance of the FlowPosition class.
FlowPosition(name, workflowData, workflowCodeInstance)Initializes a new instance of the FlowPosition class with a name, workflow data, and workflow code instance.
FlowPosition(name,workflowData,workflowCodeInstance)Initializes a new instance of the FlowPosition class.

Methods

NameDescription
SetPositionFromVariable(sourceVariable, sourceProperty)Assigns a position to the flow position based on a variable and source property.
SetReferredUser(user)Sets a referred user for the flow position.
SetManagerUserAccordingToProfession(managerKey, professionName, targetPosition, sourcePosition, titleType, flowAssign)Sets a manager user for the flow position according to profession criteria.
GetUserInfo()Retrieves the user information for the flow position.
SetConstantPosition(id, code, description)Assigns a constant position to the flow position.
SetFromUser(userId)Assigns a user to the flow position based on the user ID.
SetFromPosition(positionId)Assigns a position to the flow position based on the position ID.
SetUserFromVariable(sourceVariable)Assigns a user to the flow position based on a variable.
SetUserFromImpersonatingUser()Sets the flow position user from the impersonating user.
SetConstantPosition(constantPosition)Assigns a constant position to the flow position using another flow position.
Initialize()Initializes the flow position with default settings.
SetUserFromFlowInitiator()Sets the flow position user from the flow initiator.
GetUserInfoWithPositionId()Retrieves the user information along with the position ID for the flow position.
AddAttachment(value,type)Adds an attachment to the mail message.
SetManagerUserFromUser(managerProfile, sourcePosition)Assigns a manager user to the flow position based on a manager profile.
RemoveDocument(flowDocument)Removes a document from the flow position.
AddDocument(flowDocument, viewName, viewId, panelSize, allowEdit, showEvents)Adds a document to the flow position with optional view and display settings.
SendPushNotification(userInfo,requestItem)Sends a push notification to a user.
SetUserFromFlowInitiatorManager(managerKey)Sets the flow position user from the flow initiator's manager.
SendApprovalWebNotification(userInfo, requestItem)Sends a web notification for approval based on the provided process request and user information.
SendRequestTimedOutWebNotification(userInfo, requestItem)#import (Bimser.CSP.Workflow.Api.Steps.FlowGroup.SendRequestTimedOutWebNotification(UserInfo,ProcessRequestItem)) (shortDescription)
ToLiquid()Converts the flow position into a format compatible with Liquid templates.
SetUserFromLogonUser()Sets the flow position user from the currently logged-on user.
SetVariablePosition(position)Assigns a variable position to the flow position using another flow position.
SetConstantUser(id, userName, fullName)Assigns a constant user to the flow position.
SendMail(requestItem, userInfo)Sends an email notification based on the provided process request and user information.
SetDepartmentManagerUserFromDepartment(sourceDepartment)Sets a department manager user for the flow position based on a department.
SendWebNotification(payloadType,userInfo,requestItem)Sends a web notification to a user.

Events

NameDescription
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.

Generic Types

NameDescription
TPropertiesGeneric type of properties.